//1.登录   http://localhost:2703/api/auth/login
import request from "../utils/request";
//退出登录
export const loginApi = ({ username, password }) => {
  return request.post("/auth/login", {
    username,
    password,
  });
};
//获取用户信息
export const getUserInfoApi = () => request.get("/users/profile");
export const logoutApi = () => request.post("/auth/logout");
